package framework.impl;

import framework.api.FileLoggerModel;

public class FileLoggerModelImpl implements FileLoggerModel {
    private String file;
    private boolean threaded = false;
    private int interval = 30;

    public FileLoggerModelImpl(String file) {
        this.file = file;
    }

    @Override
    public String getFile() {
        return file;
    }

    @Override
    public boolean isThreaded() {
        return threaded;
    }

    public FileLoggerModel setThreaded(boolean threaded) {
        this.threaded = threaded;
        return this;
    }

    @Override
    public int getInterval() {
        return interval;
    }

    public FileLoggerModel setInterval(int interval) {
        this.interval = interval;
        return this;
    }
}
